package com.hospital.xml;


import android.util.Log;

public class XMLMaker {
	private String userid="";
	private String password="";
	
	
	public XMLMaker(String userid,String password){
		this.userid=userid;
		this.password=password;	
	}

	public String getPicUrl(String s1,String s2,String org){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>EX0013</trans_no></head><request><apply_single_no>"+apply_single_no+"</apply_single_no><seqno>"+segno+"</seqno></request></body>";
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C03.02.04.01</trans_no></head><resquest><org_code>"+org+"</org_code><apply_single_no>"+s1+"</apply_single_no><seqno>"+s2+"</seqno></resquest></body>";
	Log.i("111111111111",ret);
			return ret;
	}

	public String getDiseaseDetatils(String jbbh){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI1002</trans_no></head><resquest><JBBH>"+jbbh+"</JBBH></resquest></body>";
		return ret;
	}
	public String getDiseaseList(String zzbh){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI6001</trans_no></head><resquest><ZZBH>"+zzbh+"</ZZBH></resquest></body>";
		return ret;
	}


	public String sendAssay(String code,String name,String org){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>EX0011</trans_no></head><request><querytype>TXM</querytype><queryvalue>"+code+"</queryvalue><name>"+name+"</name></request></body>";
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>C03.02.04.00</trans_no></head><request><QUERYTYPE>BGDH</QUERYTYPE><QUERYVALUE>"+code+"</QUERYVALUE><ORG_CODE>"+org+"</ORG_CODE><NAME>"+name+"</NAME></request></body>";
		return ret;
	}
	public String sendAssay1(String code,String name,String org){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>EX0011</trans_no></head><request><querytype>TXM</querytype><queryvalue>"+code+"</queryvalue><name>"+name+"</name></request></body>";
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>C03.02.04.00</trans_no></head><resquest><QUERYTYPE>TXM</QUERYTYPE><QUERYVALUE>"+code+"</QUERYVALUE><ORG_CODE>"+org+"</ORG_CODE><NAME>"+name+"</NAME></resquest></body>";

		return ret;
	}


	public String getBuWeiJiBin(String bwid){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI9001</trans_no></head><resquest><ZZMC></ZZMC><ZZMCSP></ZZMCSP><BWBH>"+bwid+"</BWBH><KSBH></KSBH><DFRQ></DFRQ><DFJJ></DFJJ><CTIMEF></CTIMEF><CTIMET></CTIMET><ISCOMMON></ISCOMMON></resquest></body>";
		return ret;
	}
	public String getBuWei(String sex){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI1003</trans_no></head><request><FBWBH></FBWBH><BWMC></BWMC><SEX>"+sex+"</SEX></request></body>";
		return ret;
	}

	public String getUserno(String admission_no,String ore_code){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C02.04.01.00</trans_no></head><request><PATIENT_CODE>"+admission_no+"</PATIENT_CODE><ORG_CODE>"+ore_code+"</ORG_CODE></request></body>";
		//String ret="<body><head><userid>test</userid><password>123</password><trans_no>HO0003</trans_no></head><request><admission_no>"+admission_no+"</admission_no></request></body>";

		return ret;
	}

	public String getVaccineList5001(String YMMC,String JBBH,String psize,String pindex){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI5001</trans_no></head><request><YMMC>"+YMMC+"</YMMC><JBBH>"+JBBH+"</JBBH><PSIZE>"+psize+"</PSIZE><PINDEX>"+pindex+"</PINDEX></request></body>";
		return ret;
	}
	public String getVaccineList5002(String YMBH){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI5002</trans_no></head><request><YMBH>"+YMBH+"</YMBH></request></body>";
		return ret;
	}
	public String getVaccineList5003(String CSRQ,String YMMC,String JBBH,String SJD,String psize,String pindex){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI5003</trans_no></head><request><BBCSRQ>"+CSRQ+"</BBCSRQ><YMMC>"+YMMC+"</YMMC><JBBH>"+JBBH+"</JBBH><SJD>"+SJD+"</SJD><PSIZE>"+psize+"</PSIZE><PINDEX>"+pindex+"</PINDEX></request></body>";
		return ret;
	}

	public String getHeaJCList(String user_name,String user_id){
		//String ret="<body><head><userid>test</userid><password>123</password><trans_no>EX0012</trans_no></head><request><name>"+user_name+"</name><cardno></cardno><id_card>"+user_id+"</id_card><start_sdate></start_sdate><end_edate></end_edate><querytype></querytype><queryvalue></queryvalue><pindex>0</pindex><psize>9999</psize></request></body>";
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C03.02.05.00</trans_no></head><resquest><name>"+user_name+"</name><cardid></cardid><cardtype></cardtype><idcard>"+user_id+"</idcard><org_code></org_code><start_date></start_date><end_date></end_date><org_code></org_code><pindex>0</pindex><psize>9999</psize><querytype></querytype><queryvalue></queryvalue></resquest></body>";
		return ret;
	}
	public String getjbxx(String id){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C01.07.01.00</trans_no></head><resquest><IDCARD>"+id+"</IDCARD></resquest></body>";
		Log.i("xxxxxx",ret);
			return ret;
	}


	public String getHealthTheme(String kssj,String jssj,String fjd,String psize,String pindex){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI7001</trans_no></head><request ><CTIMEF>"+kssj+"</CTIMEF><CTIMET>"+jssj+"</CTIMET><FJD>"+fjd+"</FJD><PSIZE>"+psize+"</PSIZE><PINDEX>"+pindex+"</PINDEX></request ></body>";

		return ret;
	}

	public String getHeaCheckoutTestList(String txm,String org){
		//String ret="<body><head><userid>test</userid><password>123</password><trans_no>AS0008</trans_no></head><request><querytype>TXM</querytype><queryvalue>"+txm+"</queryvalue></request></body>";
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C03.02.07.00</trans_no></head><resquest><querytype>BGDH</querytype><queryvalue>"+txm+"</queryvalue><org_code>"+org+"</org_code></resquest></body>";
		Log.i("xxxxxx",ret);
		return ret;
	}
	public String getHeaCheckoutPatList(String username,String userid){
		//String ret="<body><head><userid>test</userid><password>123</password><trans_no>AS0010</trans_no></head><request><name>"+username+"</name><cardno></cardno><id_card>"+userid+"</id_card><start_sdate></start_sdate><end_edate></end_edate><querytype></querytype><queryvalue></queryvalue><pindex>0</pindex><psize>9999</psize></request></body>";
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C03.02.03.00</trans_no></head><resquest><name>"+username+"</name><cardid></cardid><cardtype></cardtype><idcard>"+userid+"</idcard><org_code></org_code><start_date></start_date><end_date></end_date><pindex>0</pindex><psize>9999</psize><querytype></querytype><queryvalue></queryvalue></resquest></body>";

		return ret;
	}

	public String getHealthList(String col_id,String psize,String pindex){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI7002</trans_no></head><request ><JKLMBH>"+col_id+"</JKLMBH><PSIZE>"+psize+"</PSIZE><PINDEX>"+pindex+"</PINDEX></request ></body>";
		return ret;
	}
	public String getHealthDetail(String newsid){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI7003</trans_no></head><request ><NRBH>"+newsid+"</NRBH></request ></body>";
		return ret;
	}

	public String getBuildingList(String jgbm){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI8001</trans_no></head><request><JGBH>"+jgbm+"</JGBH></request></body>";
		return ret;
	}

	public String getFloorsList(String dlid){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>HI8002</trans_no></head><request><DLID>"+dlid+"</DLID></request></body>";
		return ret;
	}
	public String getHospitalList(String name,String type){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0001</trans_no><resources_type>"+type+"</resources_type><hospital_name>"+name+"</hospital_name></request></body>";

		return ret;
	}

	public String getHospitalList(String name)
	{
		return getHospitalList(name, "");
	}


	public String getDepartmentList(String hosid,String name,String type){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0003</trans_no><hospital_id>"+hosid+"</hospital_id><resources_type>"+type+"</resources_type><department_name>"+name+"</department_name></request></body>";

		return ret;
	}

	public String getDepartmentList(String hosid,String name){
		return getDepartmentList(hosid, name, "");
	}

	public String getHospitalInfo(String id){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0002</trans_no><hospital_id>"+id+"</hospital_id></request></body>";

		return ret;
	}

	public String getDepartmentInfo(String hosid,String depid){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0004</trans_no><hospital_id>"+hosid+"</hospital_id><department_id>"+depid+"</department_id></request></body>";

		return ret;
	}

	public String getDoctorList(String hosid,String depid,String name,String type,String psize,String pindex){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0005</trans_no><hospital_id>"+hosid+"</hospital_id><department_id>"+depid+"</department_id><doctor_name>"+name+"</doctor_name><resources_type>"+type+"</resources_type><page_size>"+psize+"</page_size><page_index>"+pindex+"</page_index></request></body>";

		return ret;
	}

	public String getDoctorInfo(String hosid,String depid,String docid){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0006</trans_no><hospital_id>"+hosid+"</hospital_id><department_id>"+depid+"</department_id><doctor_id>"+docid+"</doctor_id></request></body>";

		return ret;
	}
	public String getDocTopList(String name ,String psize,String pindex){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0007</trans_no><doctor_name>"+name+"</doctor_name><page_size>"+psize+"</page_size><page_index>"+pindex+"</page_index></request></body>";

		return ret;
	}
	public String getPayInfo(String schnum,String memnum){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0015</trans_no><schedule_num>"+schnum+"</schedule_num><member_num>"+memnum+"</member_num></request></body>";

		return ret;
	}

	public String getCancelInfo(String schnum,String memnum,String schedule_date,String schedule_ghxh){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0017</trans_no><schedule_date>"+schedule_date+"</schedule_date><schedule_ghxh>"+schedule_ghxh+"</schedule_ghxh><member_num>"+memnum+"</member_num></request></body>";

		return ret;
	}

	public String getMemberInfo(String memnum){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0018</trans_no><member_num>"+memnum+"</member_num></request></body>";

		return ret;
	}

	public String getLoginInfo(String name,String password){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0012</trans_no><login_name>"+name+"</login_name><login_password>"+password+"</login_password></request></body>";

		return ret;
	}

	public String getSeachSch(String memnum){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0016</trans_no><member_num>"+memnum+"</member_num></request></body>";

		return ret;
	}

	public String getAssayList(String assay_begdate,String assay_enddate,String memnum,String page_size,String page_index){
		String ret="<body>"+makeHead()+"<request><trans_no>SA0001</trans_no><assay_begdate>"+assay_begdate+"</assay_begdate><assay_enddate>"+assay_enddate+"</assay_enddate>	<member_num>4195298020081023000056</member_num> <page_size>"+page_size+"</page_size> <page_index>"+page_index+"</page_index> </request></body>";
		return ret;
	}
//	public String getAssayList(String assay_begdate,String assay_enddate,String memnum){
//		String ret="<body>"+makeHead()+"<request><trans_no>SA0001</trans_no><assay_begdate>2010-01-01</assay_begdate><assay_enddate>2012-06-23</assay_enddate>	<member_num>"+memnum+"</member_num> <page_size>15</page_size> <page_index>1</page_index> </request></body>";
//		return ret;
//	}

	public String getAssayInfo(String hospital_id,String report_no,String memnum){
		String ret="<body>"+makeHead()+"<request><trans_no>SA0002</trans_no><hospital_id>"+hospital_id+"</hospital_id><report_no>"+report_no+"</report_no><member_num>4195298020081023000056</member_num></request></body>";
	    return ret;
	}

	public String getSchInfo(String begdate,String enddate,String hosid,String depid,String docid,String psize,String pindex){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0008</trans_no><schedule_begdate>"+begdate+"</schedule_begdate>	<schedule_enddate>"+enddate+"</schedule_enddate>	<hospital_id>"+hosid+"</hospital_id><department_id>"+depid+"</department_id><doctor_id>"+docid+"</doctor_id><page_size>"+psize+"</page_size><page_index>"+pindex+"</page_index></request></body>";

		return ret;
	}

	public String getDate(){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0019</trans_no></request></body>";

		return ret;
	}

	public String getRegsterInfo(String reg_na,String reg_pa,String reg_tre_na,String reg_id,String reg_med_num,String reg_pho,String reg_adr){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0009</trans_no><login_name>"+reg_na+"</login_name><login_password>"+reg_pa+"</login_password><name>"+reg_tre_na+"</name><idcard>"+reg_id+"</idcard><treatment_card>"+reg_med_num+"</treatment_card><phone>"+reg_pho+"</phone><address>"+reg_adr+"</address></request></body>";

		return ret;
	}//registerPage

	public String getRegisterActInfo(String login_name,String login_pa,String ver_code){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0010</trans_no><login_name>"+login_name+"</login_name><login_password>"+login_pa+"</login_password><ver_code>"+ver_code+"</ver_code></request></body>";

		return ret;
	}//registerAct
	public String getRegisterActHandInfo(String login_name,String login_pa){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0011</trans_no><login_name>"+login_name+"</login_name><login_password>"+login_pa+"</login_password></request></body>";

		return ret;
	}//registerActHandInfo
	public String getChangePasswordInfo(String login_name,String login_pa,String newlogin_pa){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0013</trans_no><login_name>"+login_name+"</login_name><login_password>"+login_pa+"</login_password><login_newpassword>"+newlogin_pa+"</login_newpassword></request></body>";

		return ret;
	}//changePasswordInfo

	public String getFindPasswordInfo(String login_name,String phone_num){
		String ret="<body>"+makeHead()+"<request><trans_no>SG0014</trans_no><login_name>"+login_name+"</login_name><phone>"+phone_num+"</phone></request></body>";

		return ret;
	}//findPasswordInfo

	public String getBeInHosInfo(){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HO0001</trans_no></head><resques><name></name><cardno></cardno><id_card></id_card><discharge_sdate></discharge_sdate><discharge_edate></discharge_edate><pindex></pindex><psize></psize></request></body>";
		return ret;
	}

	public String getAssayCommit(String name,String barcode,String org){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C03.02.07.00</trans_no></head><request><querytype>BGDH</querytype><queryvalue>"+barcode+"</queryvalue><org_code>"+org+"</org_code></request></body>";
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>AS0009</trans_no></head><request><name>"+name+"</name ><barcode>"+barcode+"</barcode></request></body>";
		return ret;
	}
	public String getAssayCommit1(String name,String barcode,String org){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C03.02.07.00</trans_no></head><resquest><querytype>TXM</querytype><queryvalue>"+barcode+"</queryvalue><org_code>"+org+"</org_code></resquest></body>";
		return ret;
	}

//	private String makeHead(){
//		return "<head><userid>1</userid><password>1</password></head>";
//	}

	private String makeHead(){
		//return "<head><userid>"+userid+"</userid><password>"+password+"</password></head>";
		return "<head><userid>1</userid><password>1</password></head>";
	}
	private String makeHead(String trans_no){
		return "<head><userid>test</userid><password>123</password><trans_no>"+trans_no+"</trans_no></head>";
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}


	public String getHeaInqList(String name, String cardno, String id_card,
			String org_reg_id, String start_date, String end_date, String pindex,
			String psize) {
           //String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0001</trans_no></head><request><name>"+name+"</name><cardno>"+cardno+"</cardno><id_card>"+id_card+"</id_card><org_reg_id>"+org_reg_id+"</org_reg_id><start_date>"+start_date+"</start_date><end_date>"+end_date+"</end_date><pindex>"+pindex+"</pindex><psize>"+psize+"</psize></request></body>";
        String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>C01.02.01.00</trans_no></head><resquest><NAME>"+name+"</NAME><CARDID></CARDID><CARDTYPE></CARDTYPE><IDCARD>"+id_card+"</IDCARD><ORG_CODE></ORG_CODE><START_DATE>"+start_date+"</START_DATE><END_DATE>"+end_date+"</END_DATE><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
        System.out.print("aaaaaaaaa"+ret);
		return ret;
	}
	public String getHeaPreList(String name, String cardno, String id_card,String clinic_id,
			String start_date, String end_date, String pindex,
			String psize) {
            String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0003</trans_no></head><resquest><name>"+name+"</name><cardno>"+cardno+"</cardno><id_card>"+id_card+"</id_card><clinic_id>"+clinic_id+"</clinic_id><start_date>"+start_date+"</start_date><end_date>"+end_date+"</end_date><pindex>"+pindex+"</pindex><psize>"+psize+"</psize></resquest></body>";

		return ret;
	}

	public String getHealInqInfo(String name,String id_card){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0006</trans_no></head><resquest><name>"+name+"</name><cardno></cardno><id_card>"+id_card+"</id_card><diagnose_sdate></diagnose_sdate><diagnose_edate></diagnose_edate><org_reg_id></org_reg_id><pindex></pindex><psize></psize></resquest></body>";

		return ret;
	}

	public String getHosInInfo(String name,String id_card,int type){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HO0001</trans_no></head><resquest><name>"+name+"</name><cardno></cardno><id_card>"+id_card+"</id_card><discharge_sdate></discharge_sdate><discharge_edate></discharge_edate><type>"+type+"</type><pindex>0</pindex><psize>9999</psize></resquest></body>";
		return ret;
	}
	public String getHosInInfonew(String name,String id_card){
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C02.01.01.00</trans_no></head><resquest><NAME>"+name+"</NAME><CARDID></CARDID><CARDTYPE></CARDTYPE><IDCARD>"+id_card+"</IDCARD><ORG_CODE></ORG_CODE><OUTHOS_START_DATE></OUTHOS_START_DATE><OUTHOS_END_DATE></OUTHOS_END_DATE><PINDEX>0</PINDEX><PSIZE>9999</PSIZE></resquest></body>";
		return ret;
	}

	public String getHospitalInfoList(String name, String cardno, String id_card,
			String org_reg_id, String discharge_sdate, String discharge_edate, String pindex,
			String psize) {
           String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>H00001</trans_no></head><resquest><name>"+name+"</name><cardno>"+cardno+"</cardno><id_card>"+id_card+"</id_card><discharge_sdate>"+discharge_sdate+"</discharge_sdate><discharge_edate>"+discharge_edate+"</discharge_edate><pindex>"+pindex+"</pindex><psize>"+psize+"</psize></resquest></body>";

		return ret;
	}

	public String getHospitalFeeInfo(String queryvalue, String ore) {
			String ret="<body><head><userid>test</userid><password>123</password><trans_no>C02.03.01.00</trans_no></head><resquest><QUERYTYPE>ZYH</QUERYTYPE><QUERYVALUE>"+queryvalue+"</QUERYVALUE><ORG_CODE>"+ore+"</ORG_CODE><START_DATE>20050101</START_DATE><END_DATE>20140101</END_DATE><PINDEX>0</PINDEX><PSIZE>9999</PSIZE></resquest></body>";
		    //String ret="<body><head><userid>test</userid><password>123</password><trans_no>C02.03.01.00</trans_no></head><request><QUERYTYPE>ZYH</QUERYTYPE><QUERYVALUE>51376</QUERYVALUE><ORG_CODE>41961202</ORG_CODE><START_DATE>20050101</START_DATE><END_DATE>20140101</END_DATE><PINDEX>0</PINDEX><PSIZE>9999</PSIZE></request></body>";
		return ret;
	}

	public String getHospitalFeeInfoList(String queryvalue,String cose_count_code,String ore) {
           //String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HO0005</trans_no></head><request><querytype>"+querytype+"</querytype><queryvalue>"+queryvalue+"</queryvalue><cose_count_code>"+cose_count_code+"</cose_count_code><start_date>"+start_date+"</start_date><end_date>"+end_date+"</end_date><pindex>"+pindex+"</pindex><psize>"+psize+"</psize></request></body>";
        	String ret="<body><head><userid>test</userid><password>123</password><trans_no>C02.03.02.00</trans_no></head><resquest><CATEGORY>"+cose_count_code+"</CATEGORY><QUERYTYPE>ZYH</QUERYTYPE><QUERYVALUE>"+queryvalue+"</QUERYVALUE><ORG_CODE>"+ore+"</ORG_CODE><START_DATE>20050101</START_DATE><END_DATE>20140101</END_DATE><PINDEX>0</PINDEX><PSIZE>9999</PSIZE></resquest></body>";

		return ret;
	}

	public String getHosInFee(String admission_id,String start_date,String end_date){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HO0004</trans_no></head><resquest><querytype>ZYH</querytype><queryvalue>"+admission_id+"</queryvalue><start_date>"+start_date+"</start_date><end_date>"+end_date+"</end_date><pindex>0</pindex><psize>9999</psize></resquest></body>";
		return ret;
	}



	//??????????б?????xml
	public String getMedicinesInfo(String iscommon,String flbh,String isrescue,String pindex,String psize,String yptymc){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI2001</trans_no></head><resquest><YPMC></YPMC><YPMCSP></YPMCSP><TYMC>"+yptymc+"</TYMC><YPLBBH>"+flbh+"</YPLBBH><PPMC></PPMC><JX></JX><ISYB></ISYB><ISCF></ISCF><SCSMC></SCSMC><CDLX></CDLX><CTIMEF></CTIMEF><CTIMET></CTIMET><ISCOMMON>"+iscommon+"</ISCOMMON><ISRESCUE>"+isrescue+"</ISRESCUE><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}
	//??????????????б?????xml
	public String getMedicineTypesInfo(String pindex,String psize,String ypflmc){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI2003</trans_no></head><resquest><FYPFLBH></FYPFLBH><YPFLMC>"+ypflmc+"</YPFLMC><ISCYYPFL></ISCYYPFL><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}



	//??????????б?????xml
	public String getCommonMedicineYYXZInfo(String pindex,String psize,String yyxzbt) {
		String ret = "<body><head><userid>"
				+ userid
				+ "</userid><password>"
				+ password
				+ "</password><trans_no>HI2004</trans_no></head><resquest><YPBH></YPBH><YYXZBT>"+yyxzbt+"</YYXZBT><CTIMEF></CTIMEF><CTIMET></CTIMET><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}

	//??????????б?????xml
	public String getRescueMedicinesInfo(String pindex,String psize,String yptymc){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI2001</trans_no></head><resquest><YPMC></YPMC><YPMCSP></YPMCSP><TYMC>"+yptymc+"</TYMC><YPLBBH></YPLBBH><PPMC></PPMC><JX></JX><ISYB></ISYB><ISCF></ISCF><SCSMC></SCSMC><CDLX></CDLX><CTIMEF></CTIMEF><CTIMET></CTIMET><ISCOMMON></ISCOMMON><ISRESCUE>1</ISRESCUE><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}

	//???????????б?????xml
	public String getRescueTypesInfo(String pindex,String psize,String jjflmc){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI3003</trans_no></head><resquest><JJFLMC>"+jjflmc+"</JJFLMC><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}

	//????????б?????xml
	public String getRescueInfo(String jjfl,String pindex,String psize,String jjmc){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI3001</trans_no></head><resquest><JJMC>"+jjmc+"</JJMC><JJFLBH>"+jjfl+"</JJFLBH><CTIMEF></CTIMEF><CTIMET></CTIMET><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}

	//????????????????xml
	public String getMedicineDetailInfo(String ypbh){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI2002</trans_no></head><resquest><YPBH>"+ypbh+"</YPBH></resquest></body>";
		return ret;
	}

	public String getYYXZDetailInfo(String yyxzid){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI2005</trans_no></head><resquest><YYXZID>"+yyxzid+"</YYXZID></resquest></body>";
		return ret;
	}

	//??????鵥?????б?xml
	public String getAssaySortList(String assaysort_pcode,String assaysort_keyword){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI4003</trans_no></head><resquest><FHYDFLBH>"+assaysort_pcode+"</FHYDFLBH><HYDFLMC>"+assaysort_keyword+"</HYDFLMC></resquest></body>";
		return ret;
	}

	//???????????б?xml
	public String getAssayItemList(String assaysort_keyword,String assaysort_code,String starttime,String endtime){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI4001</trans_no></head><resquest><HYXMMC>"+assaysort_keyword+"</HYXMMC><HYDFLBH>"+assaysort_code+"</HYDFLBH><CTIMEF>"+starttime+"</CTIMEF><CTIMET>"+endtime+"</CTIMET></resquest></body>";
		return ret;
	}

	//?????????????xml
	public String getAssayItemDetail(String item_code){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI4002</trans_no></head><resquest><HYXMBH>"+item_code+"</HYXMBH></resquest></body>";
		return ret;
	}

	//?????????
	public String getEditUserInfoPsw(String login_name,String login_password,String login_newpassword){
		String ret="<body>"+makeHead()+"<resquest><trans_no>SG0013</trans_no><login_name>"+login_name+"</login_name><login_password>"+login_password+"</login_password><login_newpassword>"+login_newpassword+"</login_newpassword></resquest></body>";
		return ret;
	}
	//?????????????Email
	public String getEditUserInfoAddressEmail(String member_num,String address,String email){
		String ret="<body>"+makeHead()+"<resquest><trans_no>SG0020</trans_no><member_num>"+member_num+"</member_num><address>"+address+"</address><email>"+email+"</email></resquest></body>";
		return ret;
	}


	public String getCharge(String clinic_id,String org ){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0002</trans_no></head><request><clinic_id>"+clinic_id+"</clinic_id></request></body>";
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>C01.04.01.00</trans_no></head><resquest><CLINIC_ID>"+clinic_id+"</CLINIC_ID><ORG_CODE>"+org+"</ORG_CODE></resquest></body>";

		return ret;
	}
//门诊处方费用查询
	public String getFee(String querytype,String queryvalue,String org,String pindex,String psize){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0008</trans_no></head><request><querytype>"+querytype+"</querytype><queryvalue>"+queryvalue+"</queryvalue><pindex>"+pindex+"</pindex><psize>"+psize+"</psize></request></body>";
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>C01.05.01.00</trans_no></head><resquest><QUERYTYPE>"+querytype+"</QUERYTYPE><QUERYVALUE>"+queryvalue+"</QUERYVALUE><ORG_CODE>"+org+"</ORG_CODE><PINDEX>"+pindex+"</PINDEX><PSIZE>"+psize+"</PSIZE></resquest></body>";
		return ret;
	}

	public String getFeeInfo(String querytype,String queryvalue,String org){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0009</trans_no></head><request><querytype>"+querytype+"</querytype><queryvalue>"+queryvalue+"</queryvalue></request></body>";
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>C01.05.02.00</trans_no></head><resquest><QUERYTYPE>"+querytype+"</QUERYTYPE><QUERYVALUE>"+queryvalue+"</QUERYVALUE><ORG_CODE>"+org+"</ORG_CODE><PINDEX>0</PINDEX><PSIZE>9999</PSIZE></resquest></body>";

		return ret;
	}

	public String getFeeInfoList(String querytype,String queryvalue,String cose_count_code,String ore,String pindex,String psize){
		//String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>CL0010</trans_no></head><request><querytype>"+querytype+"</querytype><queryvalue>"+queryvalue+"</queryvalue><cose_count_code>"+cose_count_code+"</cose_count_code><pindex>"+pindex+"</pindex><psize>"+psize+"</psize></request></body>";
		
		String ret="<body><head><userid>test</userid><password>123</password><trans_no>C01.05.03.00</trans_no></head><resquest><CATEGORY>"+cose_count_code+"</CATEGORY><QUERYTYPE>"+querytype+"</QUERYTYPE><ORG_CODE>"+ore+"</ORG_CODE><QUERYVALUE>"+queryvalue+"</QUERYVALUE><PINDEX>0</PINDEX><PSIZE>9999</PSIZE></resquest></body>";
		return ret;
	}
	
	public String getHosLocation(String jgbh) {
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>HI8003</trans_no></head><resquest><JGBH>"+jgbh+"</JGBH></resquest></body>";
		return ret;
	}
	public String getupdate(String jgbh){
		String ret="<body><head><userid>"+userid+"</userid><password>"+password+"</password><trans_no>SYS001</trans_no></head><resquest><JGBH>"+jgbh+"</JGBH></resquest></body>";
		return ret;
	}

}
